Dim instance AsChartCollectionDim topLeftCellAddress AsStringDim bottomRightCellAddress AsStringDim value AsT
value = instance.Add(Of T)(topLeftCellAddress, bottomRightCellAddress)
Parameters
topLeftCellAddress
The Address of the Cell corresponding to the top left corner of the new Chart.
bottomRightCellAddress
The Address of the Cell corresponding to the bottom right corner of the new Chart.
// Adds a LineChart with the generic Add method. The size of the Chart will be from Cell A1 to F6.
var lineChart = worksheet.Charts.Add<LineChart>( “A1”, “F6” );
Requirements
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2